@namespace RazorConsole.Components

@using Microsoft.AspNetCore.Components
@using RazorConsole.Core.Rendering.ComponentMarkup
@using Spectre.Console

<Panel Border="@BoxBorder" BorderColor="@BorderColor" Padding="@Padding" Expand="false">
    @ChildContent
</Panel>

@code {
    [Parameter]
    public RenderFragment? ChildContent { get; set; }

    [Parameter]
    public Color? BorderColor { get; set; }

    [Parameter]
    public BoxBorder BoxBorder { get; set; } = BoxBorder.Rounded;

    [Parameter]
    public Padding Padding { get; set; } = new(0, 0, 0, 0);
}
